<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="lib/react.js"></script>
    <script src="lib/react-dom.js"></script>
    <script src="lib/browser.js"></script>
</head>
<body>
    

    <div  id="root"></div>

    <script  type="text/babel">



            // 原生组件   div  p   img   h1   span 
            //react 自定已组件  Box  Home  
            // React 组件 
            let  Box = React.createClass({
                render(){
                    return  <h1>这是一个组件</h1>
                }
            })

            ReactDOM.render( <Box/> , document.getElementById("root") );




    </script>
</body>
</html>